package com.rt.gptnext.data.entity;

import com.rt.gptnext.common.bean.BaseEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author gaoyiyang
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
public class OpenaiChat extends BaseEntity<OpenaiChat> {

    /**
     * 聊天名
     */
    @Column(columnDefinition = "varchar(255)")
    private String name;

    /**
     * 归属用户
     */
    @Column(columnDefinition = "varchar(255)")
    private String username;

    @Column(columnDefinition = "text")
    private String systemPrompt;

    @Column(columnDefinition = "int")
    private Integer version = 1;

    /**
     * 采样温度
     */
    @Column(columnDefinition = "double")
    private double temperature = 1.0;

}
